<template>
  <div id="login">
    <div class="main-container">
      <div class="box">
        <div class="login-box">
          <h1>Welcome Hello System</h1>
          <h4 style="margin-top: 52px">please input username and password</h4>
          <login-form></login-form>
        </div>
        <div class="introduce">
          <img
            src="http://v.bootstrapmb.com/2020/10/51b1s9026/assets/images/login-images/auth-img-7.png"
            alt=""
          />
          <div class="content">
            <h2>Why do we use it?</h2>
            <!-- eslint-disable-next-line max-len -->
            <p>
              distracted by the readable content of a page when looking at its
              layout. The point of using Lorem Ipsum is that it has a
              more-or-less normal distribution of letters.
            </p>
          </div>
        </div>
      </div>
      <div class="footer"></div>
    </div>
  </div>
</template>

<script>
import loginForm from './components/LoginForm.vue';

export default {
  data() {
    return {};
  },
  methods: {},
  components: {
    loginForm,
  },
  mounted() {},
};
</script>

<style scoped>
#login {
  width: 100%;
  height: 100%;
  background: #f6f6f6;
  display: flex;
}
#login > .main-container {
  margin: auto;
  background: white;
  display: inline-flex;
  flex-direction: column;
  box-shadow: 0 0.1rem 0.7rem rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0);
}
#login > .main-container > .box {
  display: flex;
  flex-direction: row;
}
#login > .main-container > .box > .login-box {
  width: 410px;
  flex-shrink: 0;
  height: 100%;
  padding: 40px;
}
#login > .main-container > .box > .introduce {
  width: 800px;
  background: white;
  border-left: solid 3px #f6f6f6;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#login > .main-container > .box > .introduce > img {
  width: 100%;
}
#login > .main-container > .box > .introduce > .content {
  width: 100%;
  box-sizing: border-box;
  padding: 42px;
}
#login > .main-container > .footer {
  display: flex;
  flex-direction: row;
  height: 48px;
  border-top: solid 3px #f6f6f6;
}

@media screen and (max-width: 1024px) {
  #login > .main-container > .box {
  flex-direction: column;
}
  #login > .main-container > .box > .login-box {
    width: 100%;
  }
  #login > .main-container > .box > .introduce {
    width: 100%;
  }
}
</style>
